using System.Diagnostics;
using System.IO;
using System.Text;
using contracts.generation;
using data.contracts.messages;

namespace fileadapter
{
    public class FileAdapter : IFileAdapter
    {
        public void Process(SaveMessage message) {
            Trace.TraceInformation("Save to file {0}", message.Filename);
            File.WriteAllText(message.Filename, message.Content, Encoding.UTF8);
        }
    }
}